C1.WPF Namespace > CustomConverter Class > Create Method : Create(Func<Object,Type,Object,CultureInfo,Object>) Method |
'Declaration
Public Overloads Shared Function Create( _ ByVal converterFunction As System.Func(Of Object,Type,Object,CultureInfo,Object) _ ) As System.Windows.Data.IValueConverter
'Usage
Dim converterFunction As System.Func(Of Object,Type,Object,CultureInfo,Object) Dim value As System.Windows.Data.IValueConverter value = CustomConverter.Create(converterFunction)
public static System.Windows.Data.IValueConverter Create( System.Func<object,Type,object,CultureInfo,object> converterFunction )
var converter = CustomConverter.Create((value, type, parameter, culture)=> { return; //Put the converter code here });
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2